package com.fable.ntzw_ga.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.Table;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Created by gzh on 2023/3/9 23:23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Accessors(chain = true)
@Table(appliesTo = "guest_map",comment="宾客地址表")
public class GuestMap implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "地图id")
    @Column(name = "id", columnDefinition = "varchar(32) COMMENT '地图id'")
    private String id;

    @ApiModelProperty(value = "地名")
    @Column(name = "name", columnDefinition = "varchar(32) COMMENT '地名'")
    private String name;

    @ApiModelProperty(value = "经度")
    @Column(name = "latitude", columnDefinition = "varchar(32) COMMENT '经度'")
    private Double latitude;

    @ApiModelProperty(value = "纬度")
    @Column(name = "longitude", columnDefinition = "varchar(32) COMMENT '纬度'")
    private String longitude;

}
